<?php 
include("common/header.php");
include("Controller/water.php");
?>

<!DOCTYPE html>
<html>
<head>
  <title></title>
  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
  <title>e网批发管理后台</title>
  <link href="css/styles.css" rel="stylesheet" type="text/css" />
  <link href="css/sub.css" rel="stylesheet" type="text/css" />
  <script type="text/javascript" src="js/jquery.min.js"></script>
  <script language="javascript" type="text/javascript" src="../datepicker/WdatePicker.js"></script>
  <link href="css/style2.css" rel="stylesheet" type="text/css" />
</head>
<body>

<form style="widows: 100%;" action="" method="post">
      <span>开始时间</span>
      <input name="date" type="text" value=" " style="cursor:pointer;" onClick="WdatePicker()"/>
      &nbsp;&nbsp;&nbsp;
      <span>结束时间</span>
      <input name="dateL" type="text" value=" " style="cursor:pointer;" onClick="WdatePicker()"/>
      <input type="submit" name="submilt" value="提交">
</form>

<table class="bordered">
    <thead>
      <tr>
          <th>订单号/商家店铺</th>
          <th>订单总额</th>
          <th>使用首单返券金额</th>
          <th>使用优惠券金额</th>
          <th>使用返佣金额</th>
          <th>使用返券金额</th>
          <th>结算金额</th>
          <th>快递/运费</th>
          <th>付款时间</th>
          <!-- <th>结算状态</th> -->
      </tr>
    </thead>
    <?php foreach($res[0] as $key=>$value) {?>
      <tr>
        <td><?php echo $value['numbers'];?></td>
        <td><?php echo $value['totalprice'];?></td>
        <td><?php echo $value['first_coupon_price'];?></td>
        <td><?php echo $value['coupon_price'];?></td>
        <td><?php echo $value['fan_yong_price'];?></td>
        <td><?php echo $value['fan_juan_price'];?></td>
        <td><?php echo $value['blance_price'];?></td>
        <td><?php echo $value['distribution_fees'];?></td>
        <td><?php echo $value['balance_time'];?></td>
      </tr>
    <?php } ?>

</table>
<td>商品总金额：<?php echo $res[1]['to_price'];?></td>
<td>首单返券总金额：<?php echo $res[1]['fre_price'];?></td>
<td>优惠券总金额：<?php echo $res[1]['to_price'];?></td>
<td>返佣总金额：<?php echo $res[1]['to_price'];?></td>
<td>返券总金额：</td>
<td>结算总金额：</td>
<td>快递/运费总金额；</td>
</body>
</html>